<!-- 热门推荐 -->
<template>
  <div class="weekend">
    <div class="title">
      <img class="title-img" src="https://imgs.qunarzz.com/piao/fusion/1711/16/bfbb9874e8f11402.png" alt="周末去哪玩"> 周末去哪玩
    </div>
    <ul>
      <li class="item border-bottom" v-for="item in list" :key="item.id">
        <div class="item-img-wrapper">
          <img class="item-img" :src="item.imgUrl" :alt="item.title">
        </div>
        <div class="item-info">
          <p class="item-title" v-text="item.title"></p>
          <p class="item-desc" v-text="item.desc"></p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'Weekend',
  props: {
    list: Array
  },
  data () {
    return {
    }
  }
}

</script>
<style lang='stylus' scoped>
@import '~styles/mixins.styl';
.weekend
  background-color #fff
  .title
    margin-top .2rem
    line-height .8rem
    text-indent .2rem
    font-size .32rem
    .title-img
      position relative
      top -.03rem
      width: .3rem;
      height: .3rem;
  .item-img-wrapper
    overflow hidden
    height 0
    padding-bottom 37.09%
    .item-img
      width 100%
  .item-info
    padding .1rem
    padding-bottom .25rem
    .item-title
      line-height .54rem
      font-size .32rem
      ellipsis()
    .item-desc
      line-height .4rem
      color #616161
      ellipsis()
</style>
